import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-11-14
 * Time: 9:34
 */
class Student{
    private String id;
    private String name;
    private int age;

    public Student(String id, String name, int age){
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String getId(){
        return id;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public int getAge(){
        return age;
    }

    public void setAge(int age){
        this.age = age;
    }

    public boolean equals(Object o){
        if(this == o) return true;
        if(o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return id != null ? id.equals(student.id) :student.id == null;
    }

    public int hashCode(){
        return id != null ? id.hashCode() : 0;
    }

    public String toString(){
        return  id + ":" +name + ":" + age+"岁";
    }
}

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Set<Student> students = new HashSet<>();
        for (int i = 0; i < 4; i++) {
            String id = sc.next();
            String name = sc.next();
            int age = sc.nextInt();
            students.add(new Student(id, name, age));
            sc.nextLine();
        }

        for (Student student:students) {
            System.out.println(student);
        }
        sc.close();;
    }
}
